// P1248 write by cn_ryh